from fastapi import APIRouter
from database import SessionLocal, engin, Base


router = APIRouter()

Base.metadata.create_all(bind=engin)

def get_db():
    db = SessionLocal()
    try:
        yield db
    finally:
        db.close()

# 创建AD域账号
@router.get("/create_ad_user")
async def create_ad_user():
    return